package com.week.tiny_video.result;

import java.util.HashMap;

public class Result {

    //响应码
    private int code;

    private String message;


    private boolean flag = true;

    private HashMap<String,Object> data;

    public HashMap<String, Object> getData() {
        return data;
    }

    public void setData(HashMap<String, Object> data) {
        this.data = data;
    }

    public Result(int code, String message, boolean flag) {
        this.code = code;
        this.message = message;
        this.flag = flag;
    }
    public Result(int code, String message, boolean flag, HashMap<String, Object> data) {
        this.code = code;
        this.message = message;
        this.flag = flag;
        this.data = data;
    }

    public Result(int code) {
        this.code = code;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public boolean isFlag() {
        return flag;
    }

    public void setFlag(boolean flag) {
        this.flag = flag;
    }
}
